package com.gitee.huanminabc.db_freedom.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;

@Getter
public enum EducationEnum implements IEnum<Integer> {
        //最高学历: 0未知,1博士,2研究生,3本科,4大专,5高中
        UNKNOWN(0, "未知"),
        DOCTOR(1, "博士"),
        POSTGRADUATE(2, "研究生"),
        UNDERGRADUATE(3, "本科"),
        JUNIOR_COLLEGE(4, "大专"),
        HIGH_SCHOOL(5, "高中");
        private Integer value;
        private String desc;

        EducationEnum(final Integer value, final String desc) {
            this.value = value;
            this.desc = desc;
        }

        @Override
        public Integer getValue() { //用于mybatis-plus 实体类中的枚举类型字段映射
            return this.value;
        }

        public String getDesc() {
            return this.desc;
        }

}
